# 先手动通过工具生成
#./gradlew :server:assembleRelease

ls server/build/outputs/apk/release/server-release-unsigned.apk

cp server/build/outputs/apk/release/server-release-unsigned.apk server/build/outputs/apk/release/scrcpy-server.jar

adb push server/build/outputs/apk/release/scrcpy-server.jar /data/local/tmp/

adb shell CLASSPATH=/data/local/tmp/scrcpy-server.jar app_process / com.genymobile.scrcpy.Server \
              3.3.1 \
              video=true \
              audio=false \
              control=true \
              far_tunnel_forward=true \
              mid_server_host=192.168.2.1 \
              mid_server_video_port=5002 \
              mid_server_ctrl_port=5003 \

#adb shell <<EOF
#CLASSPATH=/data/local/tmp/scrcpy-server.jar app_process / com.genymobile.scrcpy.Server \
#    3.3.1 \
#    video=false \
#    audio=false \
#    control=true \
#    far_tunnel_forward=true \
#    mid_server_host=192.168.2.1 \
#    mid_server_video_port=5002 \
#    mid_server_ctrl_port=5003 \
#    > /dev/null 2>&1 &
#EOF
